home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- MODULE: rcbget.c
- PURPOSE: recio column delimited integral number input functions
- COPYRIGHT: (C) 1994 William Pierpoint
- COMPILER: Borland C Version 3.1
- OS: MSDOS Version 6.2
- VERSION: 2.00
- RELEASE: April 15, 1994
- *****************************************************************************/
-
- #include <ctype.h>
- #include <errno.h>
- #include <limits.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-
- #include "_rcbget.h"
-
- extern unsigned long str2ul(const char *nptr, char **endptr, int base);
-
- /****************************************************************************/
- /* rcbget_fn() - define rcbget functions */
- /****************************************************************************/
- #define uint unsigned int
- #define ulong unsigned long
- #ifdef __BORLANDC__
- #pragma warn -ccc
- #endif
-
- rcbget_fn( int, rcbgeti, 0, long, strtol, INT_MIN, INT_MAX)
- rcbget_fn( uint, rcbgetui, 0, ulong, str2ul, 0, UINT_MAX)
- rcbget_fn( long, rcbgetl, 0L, long, strtol, LONG_MIN, LONG_MAX)
- rcbget_fn( ulong, rcbgetul, 0L, ulong, str2ul, 0, ULONG_MAX)
-